/*!
 * Basis javasript library 
 * http://code.google.com/p/basis-js/
 *
 * @copyright
 * Copyright (c) 2006-2010 Roman Dvornov.
 *
 * @license
 * GNU General Public License v2.0 <http://www.gnu.org/licenses/gpl-2.0.html>
 */

/**
 * Default style for Basis Forms
 */

  .Basis-FormContent
  {
    position: relative;
    overflow: hidden;
  }
  .Basis-FormContent .Basis-Field
  {
    /*clear: both;*/
  }
  .Basis-FormContent .Basis-Field-Container
  {
    _position: relative;
    _zoom: 1;
    padding-left: 20px;
    _width: 100%;
  }
  .Basis-Field-Container LABEL
  {
    display: block;
  }
  .Basis-Field-Container INPUT,
  .Basis-Field-Container TEXTAREA
  {
    _border: expression("if (nodeName == 'TEXTAREA' || type.match(/text|password/)){runtimeStyle.border = '1px solid #808080';runtimeStyle.backgroundColor = 'white';runtimeStyle.padding = '2px';}");
  }
  .Basis-Field-Container INPUT[type="text"],
  .Basis-Field-Container INPUT[type="password"],
  .Basis-Field-Container TEXTAREA
  {
    border: 1px solid #808080;
    background-color: white;
    padding: 2px;
  }
  /*.Basis-Field-Container INPUT.radio,
  .Basis-Field-Container INPUT.checkbox
  {
    width: 20px;
    border: none;
    background: none;
  }*/
  .Basis-FormContent .invalid .Basis-Field-Container
  {
    background: url(warning.gif) left 0.2em no-repeat;
  }
  .Basis-FormContent .valid .Basis-Field-Container
  {
    background: url(ok.gif) left 0.2em no-repeat;
  }
  .Basis-FormContent .invalid .Basis-Field-Container INPUT,
  .Basis-FormContent .invalid .Basis-Field-Container TEXTAREA
  {
    border-color: #DD0000;
  }
  .Basis-Field-Container SELECT
  {
    width: 100%;
  }

  .Basis-FormContent .monospace INPUT
  {
    font-family: Courier;
  }
  /*.Basis-FormContent .have-button .Basis-Field-Container
  {
    padding-right: 25px;
  }

  .Basis-FormContent .have-button .Basis-Field-Container BUTTON
  {
    padding: 1px 0;
    position: absolute;
    width: 22px;
    top: 0; 
    right: -26px;
    text-align: center;
    border: 1px solid #808080;
  }*/
  .Basis-Field-Sample
  {
    clear: both;
    display: block;
    font-size: 85%;
    color: #666;
    padding: .2em 0 .4em;
  }

  .Basis-Field-LengthCounter
  {
    text-align: right;
    font-size: 80%;
    color: #333;
  }

  /* Checkbox, Radio */

  .Basis-CheckGroup LABEL INPUT,
  .Basis-RadioGroup LABEL INPUT,
  .Basis-Field-Checkbox LABEL INPUT
  {
    margin: 0 0.5ex 0 0;
  }

  .Basis-CheckGroup LABEL INPUT,
  .Basis-CheckGroup LABEL SPAN,
  .Basis-RadioGroup LABEL INPUT,
  .Basis-RadioGroup LABEL SPAN,
  .Basis-Field-Checkbox LABEL INPUT,
  .Basis-Field-Checkbox LABEL SPAN
  {
    display: inline-block;
    vertical-align: middle;
  }




  /* ===========================
       listbox */

  /*.basis-listbox
  {
    border: 1px solid #888;
  }
  .basis-listbox-title
  {
    line-height: 1em;
    margin-top: -.6em;
    margin-left: 5px;
    padding: 0 4px 4px 2px;
    background: white;
    float: left;
  }
  .basis-listbox-content
  {
    padding: 3px;
    clear: both;
    overflow-y: auto;
  }
  .basis-listbox-item
  {
    cursor: pointer;
    padding: 1px;
    margin: 1px;
  }
  .basis-listbox-item:hover
  {
    background-color: #F8F8F8;
  }
  .basis-listbox-item .basis-listbox-item-content
  {
    padding: 3px;
  }
  .basis-listbox-content .selected
  {
    padding: 0;
    cursor: default;

    background: #D5EFFC url(selected_bg.gif) repeat-x !important;
    border: 1px solid #99DEFD;
  }*/
